package com.huntero.hweather.api;

public interface IWeather {
	public interface IWeatherEventHandler{
		/**
		 * 
		 */
		public void onPreStart();
		/**
		 * 
		 * @param data
		 */
		public void onFinished(Object data);
	}
	public static final String WEATHER_RESULT_DATA_ERROR="data error";
	/**
	 * 常规预报（24小时）
	 */
	public static final String WEATHER_TYPE_FORECAST1D = "forecast1d";
	/**
	 * 常规预报（72小时）
	 */
	public static final String WEATHER_TYPE_FORECAST3D = "forecast3d";
	/**
	 * 指数
	 */
	public static final String WEATHER_TYPE_INDEX = "index";
	/**
	 * 实况
	 */
	public static final String WEATHER_TYPE_OBSERVE = "observe";
	/**
	 * 天气数据
	 * @param url
	 * @param type
	 * @return
	 */
	public String data(String areaid,String type);
	/**
	 * 天气数据-异步
	 * @param url
	 * @param type
	 */
	public void dataAsync(String areaid,String type) throws IllegalArgumentException;
}
